package cn.wolfcode.rbac.service;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.query.EmployeeQueryObject;
import cn.wolfcode.rbac.query.PageResult;
import cn.wolfcode.rbac.query.QueryObject;

import java.util.List;

public interface IEmployeeService {
    //增加 or 修改
    void saveOrUpdate(Employee employee,Long[] roleIds);

    //删除
    void delete(Long id);

    //查询单个
    Employee getOne(Long id);

    //查询全部
    List<Employee> listAll();


    PageResult query(EmployeeQueryObject qo);

    void login(String username, String password);
}
